package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.ClientDevPlan;
import cn.wolfcode.crm.query.ClientPlanQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientDevPlanMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClientDevPlan record);

    ClientDevPlan selectByPrimaryKey(Long id);

    List<ClientDevPlan> selectAll();

    int updateByPrimaryKey(ClientDevPlan record);

    int query4Count(ClientPlanQueryObject qo);

    List<ClientDevPlan> query4List(ClientPlanQueryObject qo);

    ClientDevPlan getByName(String name);

    void changeResult(@Param("id") Long id, @Param("result") Long result);

    Long selectByUserName(String name);

    ClientDevPlan selectByClientId(Long cid);

    void deleteByClientId(Long cid);
}